<include file="top" />

<script language="javascript">
 function getValue()
 {
  var s = "";
  for(var i=0;i<form1.relative_product.options.length;i++)
  {
   if(form1.relative_product.options[i].selected)
   { 
    s+=form1.relative_product.options[i].value;
    s+=',';
   }
  }
  form1.rp.value=s;
 }
</script>
<div id="right">
	<h3>添加产品</h3>
	<form method="post" enctype="multipart/form-data" id="form1">
		<table width="98%" border="0" class="table">
			<tr>
				<td width="16%" >软件类型window ro mac：</td>
				<td width="84%">
					<input type="radio" value="0" <if condition="$product.pc eq 0">checked="checked"</if> name="pc">不显示
					<input type="radio" value="1" <if condition="$product.pc eq 1">checked="checked"</if> name="pc">for windows
					<input type="radio" value="2" <if condition="$product.pc eq 2">checked="checked"</if> name="pc">for mac
				</td>
			</tr>
			<tr>
				<td width="16%" >*产品名称：</td>
				<td width="84%"><input class="w350" type="text" name="product_name"></td>
			</tr>
			
			<tr>
				<td width="16%" >title：</td>
				<td width="84%"><input class="w350" type="text" name="product_title"></td>
			</tr>
			<tr>
				<td width="16%" >keywords：</td>
				<td width="84%"><input class="w350" type="text" class="wid" name="product_keyword" value=""></td>
			</tr>
			<tr>
					<td width="16%" >*首页缩略图(用于首页)：</td>
					<td width="84%"><input type="file" name="small_icon"></td>
			</tr>
			<tr>
					<td width="16%" >*首页缩略图2(用于首页)：</td>
					<td width="84%"><input type="file" name="sec_img"></td>
			</tr>
			<tr>
				<td width="16%" >产品图片：</td>
				<td width="84%">
					<input type="file" name="t_img">
				</td>
			</tr>
			
				<tr>
					<td width="16%" >how it work 链接：</td>
					<td width="84%"><input class="w350" type="text" class="wid" name="work_link" value=""></td>
				</tr>
			<tr>
			
			<tr>
					<td width="16%" >自定义静态化名字：</td>
					<td width="84%"><input class="w350" type="text" name="statice_name"></td>
				</tr>
			<tr>
				<td width="16%" >windows购买链接：</td>
				<td width="84%"><input class="w350" type="text" class="wid" name="buy_link" value=""></td>
			</tr>
			<tr>
				<td width="16%" >windows下载链接：</td>
				<td width="84%"><input class="w350" type="text" class="wid" name="download_link" value=""></td>
			</tr>
			
			<tr>
				<td width="16%" >mac购买链接：</td>
				<td width="84%"><input class="w350" type="text" class="wid" name="sec_buy_link" value=""></td>
			</tr>
			<tr>
				<td width="16%" >mac下载链接：</td>
				<td width="84%"><input class="w350" type="text" class="wid" name="sec_download_link" value=""></td>
			</tr>
			<tr>
				<td width="16%" >按钮1文字：</td>
				<td width="84%"><input class="w350" type="text" class="wid" name="button_one_word" value=""></td>
			</tr>
			<tr>
				<td width="16%" >按钮2文字：</td>
				<td width="84%"><input class="w350" type="text" class="wid" name="button_two_word" value=""></td>
			</tr>
			
			
			<tr>
				<td width="16%" >只有一个下载链接：</td>
				<td width="84%">
					<input type="radio" name="one_download_link" value="1" >是
					<input type="radio" name="one_download_link" value="0" >否
				</td>
			</tr>
			
			<tr>
				<td width="16%" >for windows or mac外链接:(暂时不用)</td>
				<td width="84%">
					<input class="w350" type="text" value="" name="out_link">
				</td>
			</tr>
			
			<tr>
				<td width="16%" >是否热卖：（首页产品）</td>
				<td width="84%">
					<input type="radio" value="1" name="is_popular">是
					<input type="radio" value="0" checked="checked" name="is_popular">否
				</td>
			</tr>
			
			<tr>
				<td width="16%" >市场价：</td>
				<td width="84%"><input class="w350" type="text" name="market_price"></td>
			</tr>
			
			<tr>
				<td width="16%" >w版本号：</td>
				<td width="84%"><input type="text" name="w_version" value=""></td>
			</tr>
			<tr>
				<td width="16%" >m版本号：</td>
				<td width="84%"><input type="text" name="m_version" value=""></td>
			</tr>
			<tr>
				<td width="16%" >windows价格：</td>
				<td width="84%"><input type="text" name="now_price" value=""></td>
			</tr>
			<tr>
				<td width="16%" >mac价格：</td>
				<td width="84%"><input type="text" name="other_price" value=""></td>
			</tr>
			<tr>
				<td width="16%" >Size：</td>
				<td width="84%"><input class="w350" type="text" name="size"></td>
			</tr>
			<tr>
				<td width="16%" >seo内容简介<br />
				(首页和产品列表页的产品简要说明)：</td>
				<td width="84%"><textarea id="introduce" name="introduce" style="width:400px;height:100px;"></textarea></td>
		    </tr>
		   <tr>
				<td width="16%" >描述：</td>
				<td width="84%"><textarea id="sec_description" name="sec_description" style="width:800px;height:200px;"></textarea></td>
		    </tr>
		      <tr>
				<td width="16%" >描述列表：</td>
				<td width="84%"><textarea id="list_description" name="list_description" style="width:800px;height:200px;"></textarea></td>
		    </tr>
			<tr>
				<td width="16%" >内容：</td>
				<td width="84%"><textarea id="product_content" name="product_content" style="width:800px;height:300px;"></textarea></td>
			</tr>
			<tr>
				<td width="16%" ></td>
				<td width="84%"><input type="submit" value="提交" name="sub" onclick="getValue()" /></td>
			</tr>
		</table>
	</form>
	<script type="text/javascript">
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('#product_content', {
					allowFileManager : true
				});
			});
	</script>
	<script type="text/javascript">
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('#sec_description', {
					allowFileManager : true
				});
			});
			KindEditor.ready(function(K) {
				editor = K.create('#list_description', {
					allowFileManager : true
				});
			});
	</script>
</div>
<include file="foot" />